package com.ihr360.cnb.module.insurance.service.feign.fallback;

import com.ihr360.cnb.module.insurance.service.feign.InsuranceStaffBenefitService;
import com.ihr360.commons.exception.Ihr360Exception;
import com.ihr360.commons.vo.PageData;
import com.ihr360.insurance.entity.request.StaffBenefitRequest;
import com.ihr360.insurance.entity.request.StaffBenefitVoRequest;
import com.ihr360.insurance.entity.vo.StaffBenefitVo;
import org.springframework.stereotype.Component;

/**
 * @author Stone.Shi
 * @description
 * @date 2018-05-23 09:05:53.
 */
@Component
public class InsuranceStaffBenefitServiceFallback implements InsuranceStaffBenefitService {

    private static final String MESSAGE = "内部服务调用失败：调用福利云服务失败";

    @Override
    public PageData<StaffBenefitVo> getBenefitStaffs(String companyId,
                                                     StaffBenefitRequest staffBenefitRequest) {
        throw new Ihr360Exception("", MESSAGE);
    }

    @Override
    public void saveBenefits(String companyId, StaffBenefitVoRequest request) {
        throw new Ihr360Exception("", MESSAGE);
    }

}
